package form;

import java.sql.Date;

import javax.swing.JComponent;
import javax.swing.JPanel;

import customGUI.DatePicker;

import checker.StringChecker;

public class FormDatePicker extends FormInputComponent {

	public FormDatePicker(String label, DatePicker component, StringChecker inputChecker) {
		super(label, component, inputChecker);
	}

	@Override
	public void returnUIToDefaultState() {

	}

	@Override
	public void clearUIError() {
	
		
	}

	@Override
	public void triggerUIError() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getInput() {
		
		return ((DatePicker)component).getDate().toString();
	}

	@Override
	public void setInput(String input) {
		((DatePicker)component).setDate(Date.valueOf(input));
	}

}
